package com.devplatform.service.points;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.devplatform.pojo.points.PointsDetail;
import com.devplatform.pojo.vo.DataVo;

/**
 * @author 86156
 * @description 针对表【points_detail】的数据库操作Service
 * @createDate 2025-09-28 14:44:21
 */
public interface PointsDetailService extends IService<PointsDetail> {
    // 文章相关积分发放
    DataVo ArticlePoints(Long userId, String reasonCode);

    // 获取积分明细
    Page<PointsDetail> getDetail(Long userId, Integer pageNum, Integer pageSize, String reasonCode);

    PointsDetail getDetailById(Integer detailid, Long userId) throws IllegalAccessException;

    // 统计今日签到次数
    int countToday(Long userId);

}
